﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;
    using System.Data;

    public class Dcms_ModelBLL
    {
        private IDcms_ModelDAL cOp = Dcms.DALFactory.DALFactory.CreateDcms_Model();

        public Dcms_ModelModel AddModel(Dcms_ModelModel model)
        {
            return this.cOp.AddModel(model);
        }

        public int CheckModel(string name, string type, string lang)
        {
            return this.cOp.CheckModel(name, type, lang);
        }

        public void DeleteModelByID(int ID)
        {
            this.cOp.DeleteModelByID(ID);
        }

        public bool DelNewModel()
        {
            return this.cOp.DelNewModel();
        }

        public DataSet GetList(string sqlwhere)
        {
            return this.cOp.GetList(sqlwhere);
        }

        public Dcms_ModelModel GetModel(string Name, string type, string lang)
        {
            return this.cOp.GetModel(Name, type, lang);
        }

        public Dcms_ModelModel GetModelByFalyOrder(string Faly, int order)
        {
            return this.cOp.GetModelByFalyOrder(Faly, order);
        }

        public Dcms_ModelModel GetModelByID(int id)
        {
            return this.cOp.GetModelByID(id);
        }

        public IList<Dcms_ModelModel> GetModelList(string sqlwhere)
        {
            return this.cOp.GetModelList(sqlwhere);
        }

        public int GetNewOrder(string type, string lang)
        {
            return this.cOp.GetNewOrder(type, lang);
        }

        public int GetOrder(string Name, string type, string lang)
        {
            return this.cOp.GetOrder(Name, type, lang);
        }

        public Dcms_ModelModel GetParentModel(string Type, string lang)
        {
            return this.cOp.GetParentModel(Type, lang);
        }

        public string GetUrl(string Type, int order)
        {
            return this.cOp.GetUrl(Type, order);
        }

        public Dcms_ModelModel Update(Dcms_ModelModel model)
        {
            return this.cOp.Update(model);
        }
    }
}

